Range objects are simply known as
ranges.
| Operations |
| DocumentFragment | - cloneContents()
- The cloneContents()
method must return the result of cloning
context object.
|
| Range | - cloneRange()
- The cloneRange()
method must return a new range with the
same start and
end as the context object.
|
| void | - collapse(optional boolean toStart)
- The
collapse(toStart)
method must if toStart is true, set
end to
start, and set
start to
end otherwise.
|
| short | compareBoundaryPoints(unsigned short how, Range sourceRange) |
| short | comparePoint(Node node, unsigned long offset) |
| void | deleteContents() |
| void | - detach()
- The detach() method must
do nothing. Its functionality (disabling a
Range object) was removed, but the method itself is preserved
for compatibility.
|
| void | - insertNode(Node node)
- The insertNode(node)
method must insert node into
context object.
|
| boolean | intersectsNode(Node node) |
| boolean | isPointInRange(Node node, unsigned long offset) |
| void | - selectNode(Node node)
- The
selectNode(node)
method must select node within
context object.
|
| void | selectNodeContents(Node node) |
| void | - setEnd(Node node, unsigned long offset)
- The
setEnd(node, offset)
method must set the end of the
context object to
boundary point
(node, offset).
|
| void | setEndAfter(Node node) |
| void | setEndBefore(Node node) |
| void | - setStart(Node node, unsigned long offset)
- The
setStart(node, offset)
method must set the start of the
context object to
boundary point
(node, offset).
|
| void | setStartAfter(Node node) |
| void | setStartBefore(Node node) |
| void | surroundContents(Node newParent) |